package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

public abstract class AbstractFactory {
	
	
	public static AbstractFactory reportEquals(String string){
		if(string.equals("JSON")){
			return new JSONFactory();
		}
		else{
			return new XMLFactory();
		}
	}
	
	public abstract ReportBody getBody();
	public abstract ReportFooter getFooter();
	public abstract ReportHeader getHeader();
	
	
}
